package com.test;

import org.dom4j.Document;
import org.dom4j.Element;

import java.net.Socket;

public class ServerControler {
    public static User parseXmlToUserState(Document requestDoc, Socket socket) {
        Element element = requestDoc.getRootElement();

        System.out.println(element.element("user_id").getText());
        System.out.println(element.element("user_state").getText());
        System.out.println(socket.getPort());
        System.out.println(socket.getInetAddress().getHostAddress());
        return new User();
    }
}
